﻿using Oliving.CommonPC.Log;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrafficWindowsService.Common;

namespace ScokTcpLibB.ScokTcpServer
{
    public class SocketComm
    {
        private static SockSvr _sockSvr = null;
        public static void InitSocketServer(int port)
        {
            if (_sockSvr == null)
            {
                _sockSvr = new SockSvr((ushort)port, 255, new Coder(Coder.EncodingMothord.UTF8));
                _sockSvr.Start();
 
                EdgeLog.writeLog(  "Log_Servce", "Start".ToString());

            }
        }
        public static SockSvr getSockSvr()
        {
            return _sockSvr;
        }

    }
}
